package com.addplus.townmall.server.api.model.town;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.addplus.townmall.server.api.model.base.BaseRestModel;
import com.baomidou.mybatisplus.annotation.TableField;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 商城会员购物车
 * </p>
 *
 * @author zhangjiehang
 * @since 2018-08-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("shop_member_cart")
public class ShopMemberCart extends BaseRestModel {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "Id", type = IdType.AUTO)
    private Integer Id;
    /**
     * 商品主键id
     */
    @TableField("shop_id")
    private Integer shopId;
    /**
     * 商品店铺主键id
     */
    @TableField("store_id")
    private Integer storeId;
    /**
     * 商品sku主键id
     */
    @TableField("shop_sku_id")
    private Integer shopSkuId;
    /**
     * 价格
     */
    private String price;
    /**
     * 数量
     */
    private Integer quantity;
    /**
     * 是否删除(0:否 1:是)
     */
    @TableField("is_delete")
    private Integer isDelete;

    /**
     * 用户id
     */
    @TableField("member_id")
    private Integer MemberId;
}
